<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/reportinfo/q_goods_kw_rbb/q_goods_kw_rbb.js此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/reportinfo/q_goods_kw_rbb/q_goods_kw_rbb.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'ID',
                footer: "Foots",
                cnName: '库位商品日结报表',
                name: 'q_goods_kw_rbb/q_goods_kw_rbb',
                url: "/q_goods_kw_rbb/",
                sortName: "商品编码,库位,日期"
            });
            const editFormFields = ref({});
            const editFormOptions = ref([]);
            const searchFormFields = ref({"日期":"","库位":"","商品编码":"","商品名称":""});
            const searchFormOptions = ref([[{"title":"编码","field":"商品编码","type":"like"},{"title":"商品名称","field":"商品名称","type":"like"},{"dataKey":"库位编码","data":[],"title":"库位","field":"库位","type":"select"},{"title":"日期","field":"日期","type":"date"}]]);
            const columns = ref([{field:'ID',title:'ID',type:'int',width:50,hidden:true,require:true,align:'left'},
                       {field:'日期',title:'日期',type:'date',sort:true,width:100,require:true,align:'left',sort:true},
                       {field:'库位',title:'库位',type:'string',bind:{ key:'库位编码',data:[]},sort:true,width:150,require:true,align:'left'},
                       {field:'商品编码',title:'编码',type:'string',sort:true,width:80,require:true,align:'left'},
                       {field:'商品名称',title:'商品名称',type:'string',width:150,require:true,align:'left'},
                       {field:'加数量',title:'加数量',type:'float',width:80,require:true,align:'left'},
                       {field:'减数量',title:'减数量',type:'float',width:80,align:'left'},
                       {field:'增成本',title:'增成本',type:'decimal',width:80,align:'left'},
                       {field:'减成本',title:'减成本',type:'decimal',width:80,align:'left'},
                       {field:'增无税成本',title:'增无税成本',type:'decimal',width:80,align:'left'},
                       {field:'减无税成本',title:'减无税成本',type:'decimal',width:80,align:'left'},
                       {field:'毛利',title:'毛利',type:'decimal',width:80,align:'left'},
                       {field:'无税毛利',title:'无税毛利',type:'decimal',width:80,align:'left'},
                       {field:'入库数量',title:'入库数量',type:'float',width:110,require:true,align:'left'},
                       {field:'入库成本',title:'入库成本',type:'decimal',width:110,require:true,align:'left'},
                       {field:'入库无税成本',title:'入库无税成本',type:'decimal',width:110,require:true,align:'left'},
                       {field:'出库数量',title:'出库数量',type:'float',width:110,require:true,align:'left'},
                       {field:'出库成本',title:'出库成本',type:'decimal',width:110,require:true,align:'left'},
                       {field:'出库无税成本',title:'出库无税成本',type:'decimal',width:110,require:true,align:'left'},
                       {field:'调出数量',title:'调出数量',type:'float',width:110,require:true,align:'left'},
                       {field:'调出成本',title:'调出成本',type:'decimal',width:110,require:true,align:'left'},
                       {field:'调出无税成本',title:'调出无税成本',type:'decimal',width:110,require:true,align:'left'},
                       {field:'调入数量',title:'调入数量',type:'float',width:110,require:true,align:'left'},
                       {field:'调入成本',title:'调入成本',type:'decimal',width:110,require:true,align:'left'},
                       {field:'调入无税成本',title:'调入无税成本',type:'decimal',width:110,require:true,align:'left'},
                       {field:'加价调出数量',title:'加价调出数量',type:'float',width:110,require:true,align:'left'},
                       {field:'加价调出成本',title:'加价调出成本',type:'decimal',width:110,require:true,align:'left'},
                       {field:'加价调出无税成本',title:'加价调出无税成本',type:'decimal',width:110,require:true,align:'left'},
                       {field:'加价调入数量',title:'加价调入数量',type:'float',width:110,require:true,align:'left'},
                       {field:'加价调入成本',title:'加价调入成本',type:'decimal',width:110,require:true,align:'left'},
                       {field:'加价调入无税成本',title:'加价调入无税成本',type:'decimal',width:110,require:true,align:'left'},
                       {field:'报溢数量',title:'报溢数量',type:'float',width:110,require:true,align:'left'},
                       {field:'报溢成本',title:'报溢成本',type:'decimal',width:110,require:true,align:'left'},
                       {field:'报溢无税成本',title:'报溢无税成本',type:'decimal',width:110,require:true,align:'left'},
                       {field:'报损数量',title:'报损数量',type:'float',width:110,require:true,align:'left'},
                       {field:'报损成本',title:'报损成本',type:'decimal',width:110,require:true,align:'left'},
                       {field:'报损无税成本',title:'报损无税成本',type:'decimal',width:110,require:true,align:'left'},
                       {field:'生产领用数量',title:'生产领用数量',type:'float',width:110,require:true,align:'left'},
                       {field:'生产领用成本',title:'生产领用成本',type:'decimal',width:110,require:true,align:'left'},
                       {field:'生产领用无税成本',title:'生产领用无税成本',type:'decimal',width:110,require:true,align:'left'},
                       {field:'生产调整数量',title:'生产调整数量',type:'float',width:110,require:true,align:'left'},
                       {field:'生产调整成本',title:'生产调整成本',type:'decimal',width:110,require:true,align:'left'},
                       {field:'生产调整无税成本',title:'生产调整无税成本',type:'decimal',width:110,require:true,align:'left'},
                       {field:'生产确认数量',title:'生产确认数量',type:'float',width:110,require:true,align:'left'},
                       {field:'生产确认成本',title:'生产确认成本',type:'decimal',width:110,require:true,align:'left'},
                       {field:'生产确认无税成本',title:'生产确认无税成本',type:'decimal',width:110,require:true,align:'left'},
                       {field:'销售数量',title:'销售数量',type:'float',width:110,require:true,align:'left'},
                       {field:'销售金额',title:'销售金额',type:'decimal',width:110,require:true,align:'left'},
                       {field:'销售无税金额',title:'销售无税金额',type:'decimal',width:110,require:true,align:'left'},
                       {field:'销售成本',title:'销售成本',type:'decimal',width:110,require:true,align:'left'},
                       {field:'销售无税成本',title:'销售无税成本',type:'decimal',width:110,require:true,align:'left'},
                       {field:'销售毛利',title:'销售毛利',type:'decimal',width:110,require:true,align:'left'},
                       {field:'销售无税毛利',title:'销售无税毛利',type:'decimal',width:110,require:true,align:'left'},
                       {field:'销售退货数量',title:'销售退货数量',type:'float',width:110,require:true,align:'left'},
                       {field:'销售退货成本',title:'销售退货成本',type:'decimal',width:110,require:true,align:'left'},
                       {field:'销售退货无税成本',title:'销售退货无税成本',type:'decimal',width:110,require:true,align:'left'},
                       {field:'售后合同数量',title:'售后合同数量',type:'float',width:110,require:true,align:'left'},
                       {field:'售后合同金额',title:'售后合同金额',type:'decimal',width:110,require:true,align:'left'},
                       {field:'售后合同无税金额',title:'售后合同无税金额',type:'decimal',width:110,require:true,align:'left'},
                       {field:'售后合同成本',title:'售后合同成本',type:'decimal',width:110,require:true,align:'left'},
                       {field:'售后合同无税成本',title:'售后合同无税成本',type:'decimal',width:110,require:true,align:'left'},
                       {field:'售后合同毛利',title:'售后合同毛利',type:'decimal',width:110,require:true,align:'left'},
                       {field:'售后合同无税毛利',title:'售后合同无税毛利',type:'decimal',width:110,require:true,align:'left'},
                       {field:'售后发货数量',title:'售后发货数量',type:'float',width:110,require:true,align:'left'},
                       {field:'售后发货成本',title:'售后发货成本',type:'decimal',width:110,require:true,align:'left'},
                       {field:'售后发货无税成本',title:'售后发货无税成本',type:'decimal',width:110,require:true,align:'left'},
                       {field:'售后退货数量',title:'售后退货数量',type:'float',width:110,require:true,align:'left'},
                       {field:'售后退货成本',title:'售后退货成本',type:'decimal',width:110,require:true,align:'left'},
                       {field:'售后退货无税成本',title:'售后退货无税成本',type:'decimal',width:110,require:true,align:'left'},
                       {field:'运维发货数量',title:'运维发货数量',type:'float',width:110,require:true,align:'left'},
                       {field:'运维发货成本',title:'运维发货成本',type:'decimal',width:110,require:true,align:'left'},
                       {field:'运维发货无税成本',title:'运维发货无税成本',type:'decimal',width:110,require:true,align:'left'},
                       {field:'运维退回数量',title:'运维退回数量',type:'float',width:110,require:true,align:'left'},
                       {field:'运维退回成本',title:'运维退回成本',type:'decimal',width:110,require:true,align:'left'},
                       {field:'运维退回无税成本',title:'运维退回无税成本',type:'decimal',width:110,require:true,align:'left'}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
